package com.bdqn.demo.utils;

import com.bdqn.demo.pojo.User;

public class ThreadHold {

    private static ThreadLocal<User> local = new ThreadLocal<>();

    public static void  set(User user){
        local.set(user);
    }

    public static User get(){
        return local.get();
    }


}
